
import request from '../utils/request'
import { payloadRequest } from '../utils/request'
import { ChatRoom } from '../ts/wcf' 


export function messages(data: any) {
    // return request<Message[]>({
    //     url: '/chatroom/messages',
    //     method: 'post',
    //     data
    // })
}
export function chatrooms(data: any) {
    return payloadRequest<ChatRoom[]>({
        url: '/wcf/chatrooms',
        method: 'post',
        data
    })
}